package com.tgy.apollo.Json;

import com.alibaba.fastjson.JSONObject;

/***
 * @ClassName: JSONTest
 * @Description:
 * @Auther: 送你一块二向箔
 * @Date: 11:09 2022/4/28
 * @version : V1.0
 */
public class JSONTest {
    public static void main(String[] args) {
        test();
    }

    public static void test(){
        JSONObject param = new JSONObject();
        param.put("name","张三");
        param.put("age",18);
        //param.put("success","success");
        System.out.println(param.get("aaaa"));
        if(param.getBooleanValue("success")){
            System.out.println("success");
        }else {
            System.out.println("fail");
        }
    }
}
